

void generateJson(/*const vector<webpage>& _pages,json& _finalResult*/){
    for(const auto& page : _pages){
        json pageJson;
        //pageJson["_doc"] = page._doc;
        //pageJson["_docId"] = page._docId;
        pageJson["_docTitle"] = page._docTitle;
        pageJson["_docUrl"] = page._docUrl;
        //pageJson["_docContent"] = page._docContent;
        pageJson["_docSummary"] = page._docSummary;

        _finalResult.push_back(pageJson);
    }
}


json getResult(){
    return _finalResult;
}

